import { createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';

import axios from 'axios';
import './axios';//注册axios
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App);

app.config.globalProperties.$axios = axios;
//全局注册element-plus 图标库
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(store)
app.use(ElementPlus)
app.use(router)
// app.use(mock)
app.mount('#app')